﻿<div class="page-sidebar-wrapper">
                <!-- BEGIN SIDEBAR -->
                <!-- DOC: Set data-auto-scroll="false" to disable the sidebar from auto scrolling/focusing -->
                <!-- DOC: Change data-auto-speed="200" to adjust the sub menu slide up/down speed -->
                <div class="page-sidebar navbar-collapse collapse">
                    <!-- BEGIN SIDEBAR MENU -->
                    <!-- DOC: Apply "page-sidebar-menu-light" class right after "page-sidebar-menu" to enable light sidebar menu style(without borders) -->
                    <!-- DOC: Apply "page-sidebar-menu-hover-submenu" class right after "page-sidebar-menu" to enable hoverable(hover vs accordion) sub menu mode -->
                    <!-- DOC: Apply "page-sidebar-menu-closed" class right after "page-sidebar-menu" to collapse("page-sidebar-closed" class must be applied to the body element) the sidebar sub menu mode -->
                    <!-- DOC: Set data-auto-scroll="false" to disable the sidebar from auto scrolling/focusing -->
                    <!-- DOC: Set data-keep-expand="true" to keep the submenues expanded -->
                    <!-- DOC: Set data-auto-speed="200" to adjust the sub menu slide up/down speed -->
                    <ul class="page-sidebar-menu  page-header-fixed left-menu-item" data-keep-expanded="false" data-auto-scroll="true" data-slide-speed="200" style="padding-top: 20px">
                        <!-- DOC: To remove the sidebar toggler from the sidebar you just need to completely remove the below "sidebar-toggler-wrapper" LI element -->
                        <li class="sidebar-toggler-wrapper hide">
                            <!-- BEGIN SIDEBAR TOGGLER BUTTON -->
                            <div class="sidebar-toggler">
                                <span></span>
                            </div>
                            <!-- END SIDEBAR TOGGLER BUTTON -->
                        </li>
                        <!-- DOC: To remove the search box from the sidebar you just need to completely remove the below "sidebar-search-wrapper" LI element -->
                        <li class="sidebar-search-wrapper hide">
                            <!-- BEGIN RESPONSIVE QUICK SEARCH FORM -->
                            <!-- DOC: Apply "sidebar-search-bordered" class the below search form to have bordered search box -->
                            <!-- DOC: Apply "sidebar-search-bordered sidebar-search-solid" class the below search form to have bordered & solid search box -->
                            <form class="sidebar-search">
                                <a href="javascript:;" class="remove">
                                    <i class="icon-close"></i>
                                </a>
                                <div class="input-group">
                                    <input type="text" class="form-control" placeholder="输入搜索关键字...">
                                    <span class="input-group-btn">
                                        <a href="javascript:;" class="btn submit">
                                            <i class="icon-magnifier"></i>
                                        </a>
                                    </span>
                                </div>
                            </form>
                            <!-- END RESPONSIVE QUICK SEARCH FORM -->
                        </li>
                        <li class="nav-item">
                            <a href="<%=SiteConfig.WebAdminPath %>index.aspx" class="nav-link">
                                <span class="title">管理主页</span>
                                <span class="selected"></span>
                            </a>
                            <ul class="sub-menu hide">
                                <li class="nav-item">
                                    <a href="<%=SiteConfig.WebAdminPath %>index.aspx" class="nav-link" data-table="">
                                      <span class="title">管理主页</span>
                                        <span class="selected"></span>
                                    </a>
                                </li>
                                
                            </ul>
                        </li>
                      
                        <li class="heading">
                            <h3 class="uppercase">内容管理</h3>
                        </li>
                        
                      <%=MarkChannelMenu(0)%>
                    
                        <li class="heading systemPageFlag">
                            <h3 class="uppercase">系统管理</h3>
                        </li>
                        
                        <li class="nav-item systemPageList <%=(GetHasRoleByRoleName("channel").Trim()=="hide norole")?"hide norole":"" %>">
                          <a href="javascript:;" class="nav-link nav-toggle">
                                <span class="title">栏目管理</span>
                                <span class="arrow"></span>
                            </a>
                            <ul class="sub-menu">
                                <li class="nav-item systemPageItem <%=GetHasRoleByRoleName("channel")%>">
                                  <a href="<%=SiteConfig.WebAdminPath %>Page_Channel/List.aspx?t=Channel" class="nav-link" data-table="Channel">
                                      <span class="title">栏目管理</span>
                                    </a>
                                </li>
                                
                            </ul>
                        </li>
                        <% if (GlobalConfigModel.Dev || GlobalConfigModel.IsModuleSystem) { %>
                        <li class="nav-item systemPageList <%=(GetHasRoleByRoleName("template").Trim()=="hide norole")?"hide norole":"" %>">
                          <a href="javascript:;" class="nav-link nav-toggle">
                            <span class="title">模板管理</span>
                            <span class="arrow"></span>
                          </a>
                          <ul class="sub-menu">
                            <li class="nav-item systemPageItem <%=GetHasRoleByRoleName("template")%>">
                              <a href="<%=SiteConfig.WebAdminPath %>Page_Template/List.aspx?t=Template" class="nav-link" data-table="Template">
                                <span class="title">模板列表</span>
                              </a>
                            </li>
                            <li class="nav-item systemPageItem <%=GetHasRoleByRoleName("template")%>">
                              <a href="<%=SiteConfig.WebAdminPath %>Page_Template/List.aspx?t=Component" class="nav-link" data-table="Component">
                                <span class="title">组件列表</span>
                              </a>
                            </li>
                          </ul>
                        </li>
                        <%}%>
                        <li class="nav-item  systemPageList <%=(GetHasRoleByRoleName("admin").Trim()=="hide norole" && GetHasRoleByRoleName("role").Trim()=="hide norole")?"hide norole":"" %>">
                            <a href="javascript:;" class="nav-link nav-toggle">
                                <span class="title">管理员管理</span>
                                <span class="arrow"></span>
                            </a>
                            <ul class="sub-menu">
                                <li class="nav-item  systemPageItem <%=GetHasRoleByRoleName("admin")%>">
                                    <a href="<%=SiteConfig.WebAdminPath %>Page_Administrator/List.aspx?t=Administrator" class="nav-link " data-table="Administrator">
                                      <span class="title">管理员列表</span>
                                    </a>
                                </li>
                                <li class="nav-item  systemPageItem <%=GetHasRoleByRoleName("role")%>">
                                    <a href="<%=SiteConfig.WebAdminPath %>Page_Role/List.aspx?t=Roles" class="nav-link" data-table="Roles">
                                      <span class="title">权限管理</span>
                                    </a>
                                </li>
                                
                            </ul>
                        </li>
                      <li class="nav-item systemPageList <%=(GetHasRoleByRoleName("system").Trim()=="hide norole" && GetHasRoleByRoleName("database").Trim()=="hide norole" && GetHasRoleByRoleName("syslog").Trim()=="hide norole")?"hide norole":"" %>">
                        <a href="javascript:;" class="nav-link nav-toggle">
                          <span class="title">系统管理</span>
                          <span class="arrow"></span>
                        </a>
                        <ul class="sub-menu ">
                          <li class="nav-item  systemPageItem <%=GetHasRoleByRoleName("system")%>">
                            <a href="<%=SiteConfig.WebAdminPath %>Page_System/System.aspx?t=Versions&action=editVersions" class="nav-link" data-table="Versions">
                              <span class="title">站点配置</span>
                            </a>
                          </li>
                          <li class="nav-item  systemPageItem <%=GetHasRoleByRoleName("database")%>">
                            <a href="<%=SiteConfig.WebAdminPath %>Page_System/DataBase.aspx?t=DataBase&action=editDataBase" class="nav-link" data-table="DataBase">
                              <span class="title">数据库备份</span>
                            </a>
                          </li>
                          <li class="nav-item systemPageItem <%=GetHasRoleByRoleName("syslog")%>">
                            <a href="<%=SiteConfig.WebAdminPath %>Page_System/SystemLog.aspx?t=SystemLog" class="nav-link" data-table="SystemLog">
                              <span class="title">操作日志</span>
                            </a>
                          </li>
                          <li class="nav-item systemPageItem <%=GetHasRoleByRoleName("system")%>">
                              <a href="<%=SiteConfig.WebAdminPath %>Page_System/SystemConfig.aspx?t=SystemConfig" class="nav-link" data-table="SystemConfig">
                                <span class="title">系统配置</span>
                              </a>
                            </li>
                          <li class="nav-item hide">
                            <a href="layout_mega_menu_light.html" class="nav-link ">
                              <span class="title">审核流程</span>
                            </a>
                          </li>
                          
                          <li class="nav-item  hide">
                            <a href="layout_full_width.html" class="nav-link ">
                              <span class="title">过滤词管理</span>
                            </a>
                          </li>
                        </ul>
                      </li>

                      <li class="nav-item systemPageList <%=(GetHasRoleByRoleName("filemanager").Trim()=="hide norole")?"hide norole":"" %>">
                          <a href="javascript:;" class="nav-link nav-toggle">
                            <span class="title">文件管理</span>
                            <span class="arrow"></span>
                          </a>
                          <ul class="sub-menu">
                              <li class="nav-item systemPageItem <%=GetHasRoleByRoleName("filemanager")%>">
                                <a href="<%=SiteConfig.WebAdminPath %>Page_FileManager/FileManager.aspx?t=FileManager" class="nav-link" data-table="FileManager">
                                  <span class="title">文件管理</span>
                                </a>
                              </li>
                           </ul>
                        </li>
                        
                        <% if (GlobalConfigModel.Dev) { %>
                        <li class="nav-item systemPageList <%=(GetHasRoleByRoleName("system").Trim()=="hide norole")?"hide norole":"" %>">
                          <a href="javascript:;" class="nav-link nav-toggle">
                            <span class="title">高级模式</span>
                            <span class="arrow"></span>
                          </a>
                          <ul class="sub-menu">
                            <li class="nav-item systemPageItem <%=GetHasRoleByRoleName("system")%>">
                              <a href="<%=SiteConfig.WebAdminPath %>Page_AdvTools/Index.aspx?t=AdvTools" class="nav-link" data-table="AdvTools">
                                <span class="title">高级工具箱</span>
                              </a>
                            </li>
                          </ul>
                        </li>
                        <%}%>
                    </ul>
                    <!-- END SIDEBAR MENU -->
                    <!-- END SIDEBAR MENU -->
                </div>
                <!-- END SIDEBAR -->
            </div>

